home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
program
/
4cmp22s.zip
/
DISPLAY1.4TH
< prev
next >
Wrap
Text File
|
1994-10-30
|
1KB
|
40 lines
\ FORTH COMPILER DISPLAY LIBRARY 05/13/93
0 [IF]
COPYRIGHT 1985, 1993 (C) BY THOMAS ALMY. ALL RIGHTS RESERVED
Permission is granted to registered users of ForthCMP to sell or distribute
computer programs incorporating the compiled contents of this file.
Fast Terminal output for IBM pc or compatibles.
Works with monochrome or color monitors in any text display mode.
EMIT generates all 256 characters -- no control functions.
Include this file at start of program.
Include the file DISPLAY2 before FORTHLIB
When used with FACIL, include DISPLAY2 before FACIL2
Define constant VID-DELAY non-zero for vertical retrace blanking
Execute SETUP-VID at program start, and UNSETUP-VID at finish
This library defines EMIT, TYPE, CS:TYPE, PAGE, AT-XY, FOREGROUND,
BACKGROUND, INTENSITY, -INTENSITY, BLINK, -BLINK, as in
PC/Forth. DO NOT use CONSOLE PRINTER and/or MESSAGES!
[THEN]
10 HEX
VARIABLE vidseg \ VIDEO SEGMENT
VARIABLE style \ DISPLAY STYLE
VARIABLE cursor \ CURSOR POSITION
VARIABLE crtport \ CRT PORT
B800 vidseg ! 7 style ! 0 cursor ! 3D4 crtport !
50 VALUE c/l \ Characters per line
19 VALUE l/s \ lines per screen
0 VALUE c/s 0 VALUE c/sm1 0 VALUE crtstart
1 0 IN/OUT NEED FOREGROUND
1 0 IN/OUT NEED BACKGROUND
2 0 IN/OUT NEED AT-XY
0A = [IF] DECIMAL [THEN]